#
# Be sure to run `pod lib lint JWQRCodeManager.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'JWQRCodeManager'
  s.version          = '0.0.6'
  s.summary          = '二维码工具'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

#  s.description      = <<-DESC
#TODO: Add long description of the pod here.
#                       DESC

  s.homepage         = 'https://gitee.com/jw10126121/JWQRCodeManager'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'linjw' => '10126121@qq.com' }
  s.source           = { :git => 'https://gitee.com/jw10126121/JWQRCodeManager.git', :tag => s.version.to_s }
  s.ios.deployment_target = '10.0'
  s.swift_version = '5.0'
#  s.source_files = 'JWQRCodeManager/Classes/**/*'
#  s.resource_bundles = {
#    'JWQRCodeManager' => ['JWQRCodeManager/Assets/*']
#  }
  s.module_name = 'JWQRCodeManager'
  s.default_subspec = 'Base'
  
  s.subspec 'Base' do |base|
      base.source_files  = 'JWQRCodeManager/Classes/Base/**/*'
      base.framework  = 'UIKit'
      base.resource_bundles = {
        'JWQRCodeManager' => ['JWQRCodeManager/Assets/*']
      }
  end
  
  s.subspec 'RxSwift' do |rx|
      rx.source_files = 'JWQRCodeManager/Classes/RxSwift/**/*'
      rx.framework  = 'UIKit'
      rx.dependency 'JWQRCodeManager/Base'
      rx.dependency 'RxSwift'
      rx.dependency 'RxCocoa'
  end

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
end
